package com.batata.continuing.pojo.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@ToString
@Component
@ConfigurationProperties(prefix = "spring.mqtt")
public class MqttInfo {

    private String username;

    private String password;

    private String url;

    private Client client;

    private DefaultInfo defaultInfo;

    @Data
    @ToString
    public static class Client {
        private String id;
    }

    @Data
    @ToString
    public static class DefaultInfo {
        private String topic;
    }

}
